package org.freespace.service;

import org.freespace.model.Machine;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.net.UnknownHostException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 压测机器表 服务类
 * </p>
 *
 * @author liuqi
 * @since 2023-05-08
 */
public interface IMachineService extends IService<Machine> {
    /**
     * 查询闲置压测机器
     * @return
     */
    List<Machine> getIdleMachine();

    void upgrade(int id) throws Exception;

    void updateMachineStatus(String ip, Integer status, Map<String, String> map) throws Exception;

    void restart(int id);
}
